$(function() {

	// 重置密码
	$("a[name='resetPwd']").click(function() {
		var a_id = $(this).attr("value");
		$.ajax({
			type : "post",
			url : "/tenement/resetAdminPwd.action",
			data : a_id,
			contentType : "application/json;charset=utf-8",
			success : function(msg) {
				alert("【重置密码成功】");
			}
		})
		location.href = "toAdminManageHtml.action";
	})
	// 删除管理员
	$("a[name='deleteAdmin']").click(function() {
		var a_id = $(this).attr("value");
		$.ajax({
			type : "post",
			url : "/tenement/deleteAdmin.action",
			data : a_id,
			contentType : "application/json;charset=utf-8",
			success : function(msg) {
				alert("【删除管理员成功】");
			}
		})
		location.href = "toAdminManageHtml.action";
	})

})